#ifndef _LOGGER_H
#define _LOGGER_H

#define LVL_DEBUG
#define LVL_INFO
#define LVL_WARNING
#define LVL_ERROR

extern int log_init(const char *log_cfg);

extern int could_debug();
extern int could_info();
extern int could_warning();
extern int could_error();

extern int debug(const char *file, const char *func, u_int32_t line, const char *msg);
extern int info(const char *file, const char *func, u_int32_t line, const char *msg);
extern int warning(const char *file, const char *func, u_int32_t line,
		const char *msg);
extern int error(const char *file, const char *func, u_int32_t line, const char *msg);

#endif /** end of headfile**/
